﻿
using Newtonsoft.Json;
using Smartstore.Collections.JsonConverters;

namespace Smartstore.Core.Catalog.Products
{
    [Serializable]
    public class YLQXModel
    {
        public bool r { get; set; }
        public int code { get; set; }
        public YLQXDataModel data { get; set; } = new YLQXDataModel();
    }

    [Serializable]
    public class YLQXDataModel
    {
        public int total { get; set; }
        public int pnum { get; set; }
        public int psize { get; set; }

        public List<YLQXProductModel> list { get; set; } = new();
    }

        [Serializable]
    public class YLQXProductModel
    {
        public int ID { get; set; }
        /// <summary>
        /// 同一个厂家或注册证号等进行的分组
        /// </summary>
        public long GroupID { get; set; }
        /// <summary>
        /// 商品类型
        /// </summary>
        public int Type { get; set; }
        /// <summary>
        /// 品牌
        /// </summary>
        public string Brand { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Spec { get; set; }
        /// <summary>
        /// 型号
        /// </summary>
        public string Model { get; set; }
        /// <summary>
        /// 受托生产企业名称
        /// </summary>
        public string Producer { get; set; }
        /// <summary>
        /// 货号
        /// </summary>
        public string Sku { get; set; }
        /// <summary>
        /// 条形码
        /// </summary>
        public string Barcode { get; set; }
        /// <summary>
        /// 生产许可证号
        /// </summary>
        public string SCXKH { get; set; }
        /// <summary>
        /// 注册人
        /// </summary>
        public string RegName { get; set; }
        /// <summary>
        /// 注册证号
        /// </summary>
        public string RegNo { get; set; }
        public string UnitMin { get; set; }
        public string UnitMax { get; set; }
        public int UnitScale { get; set; }
        public decimal CostWithTax { get; set; }
        public decimal PriceWithTax { get; set; }
        public decimal TaxRate { get; set; }
        public decimal Available { get; set; }
        public decimal Freezed { get; set; }
        public string HJH { get; set; }

        /// <summary>
        /// 有效期限
        /// </summary>
        public DateTime? RegExpired { get; set; }

        /// <summary>
        /// 生产许可证有效期至
        /// </summary>
        public DateTime? SCXKYXQ { get; set; }
    }
}
